package com.jielihaofeng.chat.query;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import com.jielihaofeng.framework.common.query.Query;

/**
 * 消息表查询
 *
 * @author 阿沐 babamu@126.com
 * @since 1.0.0 2022-07-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Schema(description = "消息表查询")
public class ChatMessageQuery extends Query {

    @Schema(description = "聊天类型 0：单聊 1：群聊")
    private String messageType;
    @Schema(description = "发送方id")
    private Long sender;
    @Schema(description = "接收方id")
    private Long receiver;
    @Schema(description = "最晚消息id")
    private Long messageId;
}